<?php
/**
 * Description of a
 * 
 * @author 叶风
 * Qq:    355007778
 * Email: ye.fn@163.com
 */

namespace c\company;
class a extends \m\base_ad
{

    var $auth_m = 'company';
    var $table = 'company';
    var $t_p = 'company';
    var $title = 'Company';
    var $State = array('hide', 'publish');
    
    function save($data, $id=NULL)
    {
        $data['py'] = \YF_f::initC('pinyin')->getFirstLetter($data['name']);
        return parent::save($data, $id);
    }

}
